Skip to content

Update protobufjs and eslint dependencies (fix CVE-2026-41242)#15

Open
amodsachintha wants to merge 2 commits intoWhiskeySockets:masterfrom
amodsachintha:patch-1
Open

Update protobufjs and eslint dependencies (fix CVE-2026-41242)#15
amodsachintha wants to merge 2 commits intoWhiskeySockets:masterfrom
amodsachintha:patch-1

Conversation

@amodsachintha
Copy link
Copy Markdown

@amodsachintha amodsachintha commented Apr 19, 2026

Fix CVE-2026-41242


Summary by cubic

Upgrades protobufjs to ^7.5.5 to fix CVE-2026-41242 and pins eslint to ^9 for updated linting. Updates the lockfile to resolve transitive dependencies.

  • Dependencies
    • protobufjs: 6.8.8 → ^7.5.5 (security fix)
    • eslint: 6.0.1 → ^9 (dev-only; lockfile resolves to 9.39.4)

Written for commit 2d617e9. Summary will update on new commits.

Summary by CodeRabbit

Chores

  • Updated project dependencies to maintain system stability, compatibility, and alignment with current tooling standards.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

📝 Walkthrough

Walkthrough

The pull request updates two npm dependencies in package.json: protobufjs is upgraded from version 6.8.8 to ^7.5.5, and eslint is upgraded from 6.0.1 to 10.2.1. No code changes are present in this update.

Changes

Cohort / File(s) Summary
Dependency Updates
package.json
Updated protobufjs to ^7.5.5 (major version bump from 6.8.8) and eslint to 10.2.1 (major version bump from 6.0.1).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 A hop, a skip, through versions we go,
Protobuf and linter in a gentle flow,
Dependencies dance from old to the new,
Seven and ten bring updates fresh and true!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically summarizes the main change: updating two dependencies and addressing a security vulnerability (CVE-2026-41242).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Line 23: The package.json bump sets "eslint": "10.2.1" (was v6) which may
introduce breaking config and compatibility changes; verify and update ESLint
configuration and document CVE rationale: confirm .eslintrc.json and
src/.eslintrc.json are compatible with ESLint v10 (or migrate them), run lint
across the repo to catch rule/plugin incompatibilities, update or pin any ESLint
plugins/extensions to versions compatible with v10, and add a PR note clarifying
why eslint is updated alongside protobufjs/CVE-2026-41242 (or split the eslint
upgrade into a separate PR if unrelated).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: e6bfff00-0052-4e86-bb4e-385608d0efbf

📥 Commits

Reviewing files that changed from the base of the PR and between 1c30d7d and d779768.

📒 Files selected for processing (1)
  • package.json

Comment thread package.json Outdated
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 issues found across 1 file

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="package.json">

<violation number="1" location="package.json:16">
P1: The lockfile still pins `protobufjs` to 6.8.8, so the security upgrade in `package.json` may not take effect for Yarn-based installs.</violation>

<violation number="2" location="package.json:23">
P1: ESLint 10 completely removes support for `.eslintrc.*` configuration files (only `eslint.config.js` flat config is supported). This project uses `.eslintrc.json` and `src/.eslintrc.json`, so upgrading from v6 directly to v10 will break linting — ESLint will not find or load the existing configuration. Either migrate the config files to flat config format (`eslint.config.js`) or pin to ESLint 9 which still supports legacy config via `ESLINT_USE_FLAT_CONFIG=false`.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review, or fix all with cubic.

Comment thread package.json
Comment thread package.json Outdated
@amodsachintha
Copy link
Copy Markdown
Author

amodsachintha commented Apr 19, 2026

Bumped protobuf version (and eslint along with it) to fix the CVE our systems reported with Baileys.

https://github.com/WhiskeySockets/Baileys/blob/8e5093c198de5c5c0230a76e8a7224f6006ebb2e/package.json#L47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant